package com.yushu.authority.mapper;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.yushu.common.util.pager.Pages;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.Map;
import java.util.List;


import com.yushu.authority.pojo.vo.PmOrgVO;
import com.yushu.authority.pojo.bo.PmOrg;




 /**
 * 
 * @author test
 * @CreateDate 2020-12-03 15:47:24
 */
public interface PmOrgMapper  extends BaseMapper<PmOrg>{
    List<PmOrgVO> selectPageList(Pages page, @Param("ew") EntityWrapper<PmOrgVO> wrapper);
    PmOrgVO queryPmOrgByKey(@Param("id") String id);
    int queryCountByName(@Param("map") Map map);


    //校验机构名称是否重复
     PmOrg validateOrgName(String orgName);
    
}
